Text Sample Display Flags
The
displayflags
parameter to the
AddTESample
and
AddTextSample
functions control the behavior of the text media handler. QuickTime 2.5 provides these additional flags:
enum {
dfContinuousScroll = 1 << 9,
dfFlowHoriz = 1 << 10,
dfContinuousKaraoke = 1 << 11,
dfDropShadow = 1 << 12,
dfAntiAlias = 1 << 13,
dfKeyedText = 1 << 14,
dfInverseHilite = 1 << 15,
dfTextColorHilite = 1 << 16
};
Flag description
-
dfContinuousScroll
-
If this flag is set, the text media handler lets new samples cause previous samples to scroll out. You must also set
dfScrollIn
and/or
dfScrollOff
for this to take effect.
-
dfFlowHoriz
-
If this flag is set, the text media handler lets horizontally scrolled text flow within the text box instead of extending to the right.
-
dfContinuousKaraoke
-
If this flag is set, the text media handler highlights ignores the starting offset when highlighting text. Instead, it highlights text from the beginning of the text sample to the ending offset.
-
dfDropShadow
-
If this flag is set, the text media handler displays text with a drop shadow. When you use the
SetTextSampleData
function, the position and translucency of the drop shadow is under your application's control. For more information, see
SetTextSampleData
later in this chapter.
-
dfAntiAlias
-
If this flag is set, the text media handler displays text with anti-aliasing. Note that although anti-aliased text looks smoother, anti-aliasing can slow down performance.
-
dfKeyedText
-
If this flag is set, the text media handler renders text over the background without drawing the background color. This technique is also known as "masked text."
-
dfInverseHilite
-
If this flag is set, the text media handler highlights text using inverse video instead of the highlight color.
-
dfTextColorHilite
-
If this flag is set, the text media handler highlights text by changing the color of the text.
© 1997 Apple Computer, Inc.Previous | Chapter Top | Chapter Contents | Next